<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>

<?php use_stylesheet('/sf/sf_admin/css/main') ?>

<div id="sf_admin_container">

<div class="title"><?php echo __('Set label') ?></div>
<div class="naujiena">
<div id="sf_admin_content">

<?php echo form_tag(
            'tree/saveLabel', array(
            'id'        => 'sf_admin_label_form',
            'name'      => 'sf_admin_label_form',
            'multipart' => false,
)) ?>

<?php echo input_hidden_tag('id', $obj->getId()) ?>

<div class="form-row">
  <?php echo label_for(
                'tree[label]'
                , __('label')
                , ''
            ) ?>
  <div class="content<?php if ($sf_request->hasError('tree[label]')): ?> form-error<?php endif; ?>">
  <?php if ($sf_request->hasError('tree[label]')): ?>
    <?php echo $sf_request->getError('tree[label]') ?><br />
  <?php endif; ?>

  <?php echo input_tag(
                'tree[label]'
                , $obj->getLabel()
                , array (
                    'size' => 80,
                )); ?>
    </div>
</div>

<ul class="sf_admin_actions">
  <li><?php echo button_to(
                    __('list')
                    , 'tree/list'
                    , array (
                        'class' => 'sf_admin_action_list',
                    )
                ) ?></li>
  <li><?php echo button_to(
                    __('edit')
                    , 'tree/edit?id=' . $obj->getId()
                    , array (
                        'class' => 'sf_admin_action_cog',
                    )
                ) ?></li>
  <li><?php echo submit_tag(__('save'), array (
  'name' => 'save',
  'class' => 'sf_admin_action_save',
)) ?></li>
  <li><?php echo submit_tag(__('save and add'), array (
  'name' => 'save_and_add',
  'class' => 'sf_admin_action_save_and_add',
)) ?></li>
</ul>


</form>

</div>

<div id="sf_admin_footer">


</div>

</div>
</div>